feat: document full DesignTheme API surface and replace deprecated GEMINI_3_PRO#13
Merged
feat: document full DesignTheme API surface and replace deprecated GEMINI_3_PRO#13
Conversation
…MINI_3_PRO Verified against live Stitch MCP server (2026-03-24) via SDK research. - Replace deprecated GEMINI_3_PRO with GEMINI_3_1_PRO across all generation skills - Document 18+ DesignTheme fields in get_project (was showing 2) - Fix wrong field name: primaryColor → customColor in get_project response - Add colorVariant (9 enums), headlineFont/bodyFont/labelFont (replacing deprecated single font), namedColors (40+ semantic tokens), spacingScale, designMd, and override colors to schemas and skills - Spec generator now outputs API-native values (colorVariant, split fonts, ROUND_EIGHT enums, spacingScale) — no downstream translation needed - Design-system extraction reads designMd + namedColors from API first, falls back to HTML parsing only for motion/shadows - Orchestrator pulls DesignTheme from existing projects before generating new screens, so screen 5 matches screens 1-4 automatically - Refresh docs/mcp-schemas/*.json with all new fields
4a47783 to
5e32786
Compare
…examples Caught by automated consistency checks: - stitch-ideate: GEMINI_3_PRO → GEMINI_3_1_PRO as default model - 7 example files: replace GEMINI_3_PRO with GEMINI_3_1_PRO - create/update design system skills: add headlineFont/bodyFont/labelFont alongside deprecated font field - spec-generator examples: use enum names and split font fields
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GEMINI_3_PROwithGEMINI_3_1_PROacross all 3 generation skills + orchestrator + UED guide + ideate + all examplesget_projectresponse (was showing 2, one with the wrong name)designMd+namedColorsinto design-system extraction — Stitch writes a full design system doc and 40+ semantic color tokens per project. We were parsing HTML to guess what the API already knewcolorVariant(9 enums),headlineFont/bodyFont/labelFont,spacingScale,roundnessas API enumsdocs/mcp-schemas/*.jsonwith fields from the live MCP serverWhy
The Stitch SDK (
@google/stitch-sdkv0.0.3) wraps the same MCP server we connect to. Reading its source revealed undocumented fields the MCP tools already accept/return. Verified against the live server on 2026-03-24 — every field checks out. The SDK itself doesn't help us (our skills are prompt-based, not TypeScript), but its schema exposed fields we never told Claude about.What we found
GEMINI_3_PROis deprecated — every generation call was sending a deprecated model IDdesignMd— Stitch auto-generates a markdown design system per project (typography rules, color philosophy, component patterns). We were reverse-engineering tokens from HTML when this existed all alongnamedColors— 40+ pre-computed Material 3 semantic tokens. No more guessing primary vs surface colors from Tailwind classesheadlineFont/bodyFont/labelFontreplace the deprecated singlefontfieldcolorVariant(FIDELITY, VIBRANT, EXPRESSIVE, etc.) controls how the palette gets derived from the seed colorFiles changed (23)
Test plan (executed 2026-03-24)
get_projecton an existing project — PASS: all 15 DesignTheme fields + 5 project fields confirmedGEMINI_3_FLASH— PASS: full response with designMd (multi-KB), namedColors (47 tokens), split fonts, colorVariant, spacingScaleGEMINI_3_1_PRO— INCONCLUSIVE: API accepted the parameter (no rejection), but HTTP timeout on both attempts. Known MCP transport issue — PRO takes longer than the HTTP window. Not a model validity issue.namedColorshas 40+ tokens — PASS: 47 semantic color tokens returneddesignMdis a real document — PASS: multi-KB markdown with typography rules, color philosophy, component patterns, do's/don'ts